
#{extends 'main.html' /}
#{set title:'Search Results' /}
<a href="export">Export</a> 
#{if orgs}
<ul> #{list items:orgs, as:'org'}
<li><a href="@{Application.showOrg(org.id)}">${org.name}</a> 
#{/list}
</ul> 

#{else}
No results found!
#{/else}
#{/if}

#{if user}
<ul> #{list items:user, as:'users'}
<li><a href="@{Application.Profile(users.id)}">${users.firstName} &nbsp; ${users.lastName}</a> 
#{/list}
</ul> 

#{else}
No results found!
#{/else}
#{/if}


#{if deps}
<ul> #{list items:deps, as:'dep'}
<li><a href="@{Application.viewDepartment(dep.id)}">${dep.name}</a> 
#{/list}
</ul> 

#{else}
No results found!
#{/else}
#{/if}

#{if topics}
<ul> #{list items:topics, as:'topic'}
<li><a href="@{Application.viewTopicById(topic.id)}">${topic.title}</a> 
#{/list}
</ul> 

#{else}
No results found!
#{/else}
#{/if}

#{if tDate}
<ul> #{list items:tDate, as:'date'}
<li><a href="@{Application.viewTopic(topic.id)}">${topic.title}</a> 
#{/list}
</ul> 

#{else}
No results found!
#{/else}
#{/if}